home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
A.C.E. 3
/
ACE CD 3.iso
/
files
/
utils
/
aplay200.lha
/
APlayer
/
Files
/
ARexx.lha
/
APMLLoader.aplay
next >
Wrap
Text File
|
1995-02-12
|
3KB
|
76 lines
/*********************************************************************
APlayer StartUp APML Loader
$VER: APlayer StartUp APML Loader 1.0.0 (09-Feb-95)
Done in 1995 by KiLLraVeN/MYSTiC
This script may be freely distributed.
This little script was made as a startup-script for the
wonderful AccessiblePlayer by Thomas Neumann. It will pop
up a ReqTools file-requester and allows you to select a
.apml file (APlayer Module List) and will start playing it.
Optionable you can have it shuffle the list before it is
played and you can have it iconify APlayer after loading the
script. By default the 1st module in the (shuffled) list
will be played, you can override this so it will not start
to play. To set these options, check the variables at the
beginning of this ARexx script.
Many thanks to : Thomas Neumann for programming APlayer.
Asger Høgsted for putting up with me ;)
Acknowledgements: RexxReqTools is ) 1992-1994 Rafael D'Hallewey
ReqTools is ) 1991-1994 Nico Frangois
AccessiblePlayer is ) 1994-1995 Thomas Neumann
**********************************************************************
NOTE: If you use the tooltype MODULELIST in your APlayer
icon, APlayer will load that list first, play the first
module in that list and then this ARexx script will be
started. So it's better you comment the tooltype out in
your icon.
*********************************************************************/
/* Start of the Script */
path = 'Music:Scripts' /* PATH TO YOUR .APML FiLES */
shuffle_list = 'No' /* SHUFFLE LiST BEFORE PLAY? */
iconify_player = 'No' /* iCONiFY PLAYER? */
start_module = 'Yes' /* START PLAYiNG? */
/* Open the RexxReqTools library */
call addlib("rexxreqtools.library", 0, -30, 0)
/* Let's talk to APlayer */
address APLAYER
options results
/* Which list do you wish to load? */
filename = rtfilerequest(, , "Please select an APML file..." , ,"rtfi_initialpath="path "rtfi_matchpat=#?.apml" "rtfi_buffer = true")
/* Did you select a file? */
if rtresult ~= 0 then
loadlist filename
/* Shuffle the list ? */
if shuffle_list ~= 'No' then
Shuffle
endif
/* Should we iconify APlayer? */
if iconify_player ~= 'No' then
Iconify
endif
/* Start the first module ? */
if start_module == 'Yes' then
playmod 1
endif
endif